package com.mcc.app.productionMat.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
import java.io.Serializable;

/**
 * 原料成本分析对象 raw_material_cost_analysis
 *
 * @author gxy
 * @date 2025-03-21
 */
@ApiModel("原料成本分析对象")
@Data
public class RawMaterialCostAnalysis implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    @ApiModelProperty("ID")
    private Long id;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("日期")
    private Date rawDate;

    @ApiModelProperty("班次")
    private String classesName;

    @ApiModelProperty("班组")
    private String teamName;

    @ApiModelProperty("日期类型，0,班次班组；1为天")
    private Integer dateType;

    @ApiModelProperty("当班或全天累积消耗量")
    private Double consumptionTotal;

    @ApiModelProperty("当班或全天累积消耗成本")
    private Double consumptionCost;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("创建时间")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("修改时间")
    private Date updateTime;

    @ApiModelProperty("创建人")
    private String createBy;

    @ApiModelProperty("修改人")
    private String updateBy;

    @ApiModelProperty("备注")
    private String remark;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(exist = false)
    private Date beginDate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(exist = false)
    private Date endDate;

}
